<template>
    <sh-upload
        ref="shUpload"
            multiple
            type="drag"
            paste>
        <div style="padding: 20px 0">
            <Icon type="ios-cloud-upload" size="52" style="color: #3399ff"></Icon>
            <p>Click or drag files here to upload</p>
        </div>
    </sh-upload>
    <Button @click="getFiles">获取文件</Button>
    <Button @click="clearFiles">清空文件</Button>
</template>
<script>
    export default {
methods: {
    getFiles(){
       console.log('222', this.$refs.shUpload.getFiles())
    },
    clearFiles() {
        this.$refs.shUpload.clearFiles()
    }
}
    }
</script>
